<!doctype html>
<html> var sid =setInterval(echoStr,2000);
	function echoStr(){
		alert("JavaScript,我的网页");
		
	}
<head>
<meta charset="utf-8">
<title>对象</title>
</head>
<script>
  /*  setTimeout(echoStr,3000);
	function echoStr(){
		alert("JavaScript,SavaScript,SavaScript,");
		
	}*/
	
	function clearIn(){
		clearInterval(sid);
	}
	</script>
<body>
<input type="button" value="跳转页面，哈哈哈哈哈哈哈" 
onClick="window.open('USA-2.html','_blank','width=400,height=350,left=350,top=300')"
>
<input type="button" value="停止按钮" 
onClick="clearIn()"
>

setTimeout(echostr)
</body>
</html>
